
/*
- (void)loadTiles
{
	if (tiles != nil) [tiles release];
	tiles = [[NSMutableArray alloc] initWithCapacity:16];
	
	NSImage *ti;
	NSMutableString *str = [NSMutableString string];
	NSString *bun = [[NSBundle mainBundle] resourcePath];
	
	int i;
	for (i=0; i<16; i++) {
		
		[str setString:[NSString stringWithFormat:@"%@/tile%c.gif",bun,hex[i]]];
		
		ti = [[NSImage alloc] initWithContentsOfFile:str];
		[tiles addObject:ti];
		[ti release];
	}
}
*/

/*- (void)save
{
	int i = NSOKButton;
	
	if (g > max) {
		i = NSRunAlertPanel(@"You exceed the number of groups allowed. Save anyway ?",
                            @"You will lose some data at the end in the process.",
                            @"Yes",@"No",nil);
	} else if (g < max) {
		i = NSRunAlertPanel(@"You did not use all the allowed bytes. Save anyway ?",
                            @"The unused bytes will be set to 0F (spider).",
                            @"Yes",@"No",nil);
	}
	
	if (i == NSOKButton) {
		[self palacePointers];
		NSRange rn = { offSet,max };
		[rom replaceBytesInRange:rn withBytes:b];
	}
}*/

/*- (void)calc
{
    int i,j; NSMutableString *ima = [NSMutableString stringWithCapacity:5]; int gr=0, ra=0;
    for (i=0; i<[matrixMap numberOfRows]; i++) {
        for (j=0; j<[matrixMap numberOfColumns]; j++) {
            
            if ( ![ima isEqualTo:[[[matrixMap cellAtRow:i column:j] image] name] ] ) {
                gr++; ra = 0;
                [ima setString:[[[matrixMap cellAtRow:i column:j] image] name] ];
            } else {
            	ra++;
                if (ra == 16) { gr++; ra = 0; }
            }
        }
        [ima setString:@"e"];
    }
    [groups setStringValue:[NSString stringWithFormat:@"%d / %d",gr,max]];
    if (gr > max) [groups setTextColor:[NSColor redColor]];
    else [groups setTextColor:[NSColor blackColor]];
} */

/*i = NSRunAlertPanel(@"Warning",
					@"Do you want to save changes before you switch region ?",
					@"Yes",@"No",@"Cancel");
*/
